//
//  QWNetworkAgent.h
//  Pods
//
//  Created by ZhangYanhua on 15/12/9.
//
//

#import <Foundation/Foundation.h>
#import "QWNetworkRequest.h"
#import <AFNetWorking/AFNetworking.h>

@interface QWNetworkAgent : NSObject

+ (QWNetworkAgent *)sharedInstance;

- (void)addRequest:(QWNetworkRequest *)request;

- (void)cancelRequest:(QWNetworkRequest *)request;

- (void)cancelAllRequests;

/// 根据request和networkConfig构建url
- (NSString *)buildRequestUrl:(QWNetworkRequest *)request;

@end
